/**     
* @Title: UserService.java
* @Package me.springboot.mybatis.service 
* @Description: TODO
* @author zengh 
* @date 2018/04/23
* @version V1.0     
*/
package me.springboot.mybatis.service;

import me.springboot.mybatis.exception.ResultException;
import me.springboot.mybatis.model.User;
import me.springboot.mybatis.core.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


/**   
* @ClassName: UserService   
* @Description: TODO
* @author zengh
* @date 2018/04/23
*/
public interface UserService extends Service<User> {

    Map<String, Object> login(HttpServletRequest request, String account, String password) throws ResultException;

    Map<String, Object> chargeMyPwd(HttpServletRequest request, String oldPwd, String newPwd) throws ResultException;

    Map<String, Object> chargePwd(HttpServletRequest request,Integer uid, String oldPwd, String newPwd) throws ResultException;

    Map<String, Object> resertPwd(String uid);

    List<User> selectByMap(Map<String, Object> param);

    Map<String, Object> phoneLogin(HttpServletRequest request, String account, String password) throws ResultException;
}